﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess
{
    /// <summary>
    /// 广告信息表
    /// </summary>
    [Table("advertinfo")]
    public class AdvertInfo
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public long id { get; set; }

        /// <summary>
        /// 广告图片地址
        /// </summary>
        public string? imgsrc { get; set; }

        /// <summary>
        /// 广告客户名称
        /// </summary>
        public string? customername { get; set; }

        /// <summary>
        /// 广告客户电话
        /// </summary>
        public string? customerphone { get; set; }

        /// <summary>
        /// 广告价格
        /// </summary>
        public double price { get; set; }

        /// <summary>
        /// 广告结束时间
        /// </summary>
        public DateTime enddate { get; set; }

        /// <summary>
        /// 广告是否显示
        /// </summary>
        public bool isshow { get; set; }

        /// <summary>
        /// 广告点击次数
        /// </summary>
        public int readcount { get; set; }

        /// <summary>
        /// 广告连接地址
        /// </summary>
        public string? adverturl { get; set; }

        /// <summary>
        /// 是否块状广告
        /// </summary>
        public bool isblock { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime updatetime { get; set; }
    }
}
